//
//  UILabel+Extension.swift
//  Weibo1.0
//
//  Created by 黄礼潮 on 16/2/17.
//  Copyright © 2016年 黄礼潮. All rights reserved.
//

import UIKit


extension UILabel {

    /// 设置Label
    ///
    /// - parameter title:    内容
    /// - parameter fontSize: 默认字体大小
    /// - parameter color:    默认的颜色
    ///
    /// - returns: UILabel
    convenience init(title:String,fontSize:CGFloat = 14,color:UIColor = UIColor.orangeColor() ){
    
        self.init()
        
        text = title
        tintColor = color
        font = UIFont.systemFontOfSize(fontSize)
        numberOfLines = 0
        textAlignment = NSTextAlignment.Center
 
    }


}